export default [
  { path: '/', name: '主页', icon: 'home', component: './Index' },
  {
    path: '/interface_info/:id',
    name: '查看接口',
    component: './InterfaceInfo',
    hideInMenu: true,
  },
  {
    path: '/admin',
    name: '管理页',
    icon: 'crown',
    access: 'canAdmin',
    routes: [
      {
        path: '/admin/user',
        name: '用户管理',
        icon: 'user',
        component: './Admin/User',
      },
      {
        path: '/admin/interface_info',
        name: '接口管理',
        icon: 'table',
        component: './Admin/InterfaceInfo',
      },
    ],
  },
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user/login',
        name: '登录',
        component: './User/Login',
      },
      {
        path: '/user/register',
        name: '注册',
        component: './User/Register',
      },
    ],
  },
  // { path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome' },
  { path: '/example', name: 'List 示例', icon: 'tag', component: './Example' },
  { path: '*', layout: false, component: './404' },
];
